package com.sscaipiao.android.model;

import com.sscaipiao.android.R;

//betMoney = {java.lang.String@830046775792}"28"
//		fee = {java.lang.String@830043169672}"1%"
//		lotteryCode = {java.lang.String@830043171912}"ssq"
//		lotteryName = {java.lang.String@830043172376}"双色球"
//		orderNo = {java.lang.String@830043171168}"1312130001203"
//		periodNo = {java.lang.String@830043170648}"2013144"
//		price = {java.lang.String@830043170936}"4.00"
//		promoter = {java.lang.String@830043169936}"Jiutian"
//		schedule = {java.lang.String@830043170176}"14%+14%保"
//		strState = {java.lang.String@830043171672}"未满员"
//		surplus = {java.lang.String@830043172144}"6"
//		title = {java.lang.String@830043170408}"testTitle2"
public class TogetherBuy {
	
	private String lotteryCode;
	private String lotteryName;
	private String periodNo;
	private String promoter;
	private String title;
	private String betMoney;
	private String orderNo;
	private String surplus;
	private String price;
	private String schedule;
	private String fee;
	private String strState;
	private String baodi;
	public String getLotteryCode() {
		return lotteryCode;
	}
	public void setLotteryCode(String lotteryCode) {
		this.lotteryCode = lotteryCode;
	}
	public String getLotteryName() {
		return lotteryName;
	}
	public void setLotteryName(String lotteryName) {
		this.lotteryName = lotteryName;
	}
	public String getPeriodNo() {
		return periodNo;
	}
	public void setPeriodNo(String periodNo) {
		this.periodNo = periodNo;
	}
	public String getPromoter() {
		return promoter;
	}
	public void setPromoter(String promoter) {
		this.promoter = promoter;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getBetMoney() {
		return betMoney;
	}
	public void setBetMoney(String betMoney) {
		this.betMoney = betMoney;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getSurplus() {
		return surplus;
	}
	public void setSurplus(String surplus) {
		this.surplus = surplus;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getSchedule() {
		return schedule;
	}
	public String getPercent() {
		int i = schedule.indexOf("%");
		return schedule.substring(0, i+1);
	}
	public void setSchedule(String schedule) {
		this.schedule = schedule;
	}
	public String getFee() {
		return fee;
	}
	public void setFee(String fee) {
		this.fee = fee;
	}
	public String getStrState() {
		return strState;
	}
	public void setStrState(String strState) {
		this.strState = strState;
	}

	public void setBaodi(String bd) {
		baodi = bd;
	}

	public String getBaodi() {
		//"schedule":"50%+0%保"
		int i = schedule.indexOf("+");
		String value = schedule.substring(i+1, schedule.length()-2);
		if (value.equals("0")) {
			return "";
		}
		return  "保" + schedule.substring(i+1, schedule.length()-1);

	}


	
}
